import { Injectable } from '@angular/core';
import { HttpClient } from '../../../../providers/httpClient';
import { Config } from '../../../../providers/config';
import _ from 'lodash';

@Injectable()
export class MarketingLineupSaveService {
	constructor(
		public httpClient: HttpClient,
		public config: Config,
	) { }

	saveData(params) {
    let postBody = {
      "module": "KSB",
      "method": "USP_A02_0200",
      "type":"USP",
      "format": "json",
      "params": params
    };
    console.log(postBody);
    return this.httpClient.post(postBody);
  }

  getUsrIDFromOAServer(login_nm) {
    let postBody = {
      "module": "OAServer",
      "method": "getUSBUsrIDByLoginID",
      "params": {
        "login_nm":login_nm
      }
    };

    return this.httpClient.post(postBody, {
      isShowLoading: false
    });
  }

}
